How many ways can an argument be passed to a subroutine and explain them?
3248
25-Oct-2010
Pushpendra Singh
08-Nov-2010Passing by value: This method copies the value of an argument into the formal parameter of the subroutine.
Passing by reference: In this method, a reference to an argument (not the value of the argument) is passed to the parameter.